import { AddFormatFunc, typeNameRuleType } from "../types";

AddFormatFunc<typeNameRuleType>({

	type: "TYPE_NAME",

	handle: (rule, FMC) => {
		return `${FMC(rule[1])}${rule[2].length === 0 || rule[2][0].length === 0 ? "" : `<${rule[2][0].map(item => FMC(item)).join(", ")}>`}`;
	},

})
